<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::prefix('wzm')->group(function (){
    //获取医生列表
    Route::get('doctor_index',['App\Http\Controllers\admin\doctor\DoctorController','index'])->name('doctor_index');
    //浏览器展示医生列表
    Route::get('pc_doctor_index',['App\Http\Controllers\admin\doctor\DoctorController','pcIndex'])->name('pc_doctor_index');
    //获取医生详情信息
    Route::get('doctor_message/{id}',['App\Http\Controllers\admin\doctor\DoctorController','doctorMessage'])->name('doctor_message');
    //分页
    Route::get('paging',['App\Http\Controllers\admin\doctor\DoctorController','paging'])->name('paging');
    //医师类别分类
    Route::get('doctor_type_list',['App\Http\Controllers\admin\doctor\DoctorTypeController','doctorTypeList'])->name('doctor_type_list');
    //获取菜单列表
    Route::get('menu_list',['App\Http\Controllers\admin\Menu\MenuController','menuList'])->name('menu_list');
    //将数据库中所有数据添加到es
    Route::get('mysql_create_es',['App\Http\Controllers\admin\doctor\DoctorController','mysqlCreate'])->name('mysql_create_es');
    //获取已添加的患者列表
    Route::get('sick_index',['App\Http\Controllers\admin\sick\SickController','sickIndex'])->name('sick_index');
    //后台签到
    Route::get('sign_index',['App\Http\Controllers\admin\sign\SignController','signIndex'])->name('sign_index');
});
